package com.wuye.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wuye.common.annotation.Excel;
import com.wuye.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 仪表管理对象 wy_yibiao
 * 
 * @author jack
 * @date 2024-11-22
 */
@Data
public class WyYibiao
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    @Excel(name = "编号")
    private Long ybId;

    /** 仪表名称 */
    @Excel(name = "仪表名称")
    private String ybName;

    /** 仪表状态 */
    @Excel(name = "仪表状态")
    private Long ybStatus;

    /** 仪表类型 */
    @Excel(name = "仪表类型")
    private Long ybTypeId;

    /** 房间id，外键 */
    private Long houseId;

    /** 业主id，外键（装仪表的人） */
    private Long yezhuId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ybCreateTime;

    /** 抄表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "抄表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ybUpdateTime;

    /** 备注 */
    @Excel(name = "备注")
    private String ybReamrk;

    /** 小区id外键 */
    private Long communityId;

    /** 楼座id外键 */
    private Long balconyId;

    /** 0正常，1删除 */
    @TableLogic
    private Long del;

    /** 单元id外键 */
    private Long unitId;

    private Long balconyunithomeId;
}
